import Vue from "vue";
import VueI18n from "vue-i18n";
import { Locale } from 'vant'
import enLocal from "./en"
import cnLocal from "./zn-CN.js"


Vue.use(VueI18n)
const messages = {
    en: {
        ...enLocal
    },
    cn: {
        ...cnLocal
    }
}
const i18n = new VueI18n({
    locale: localStorage.getItem("language") || cn,
    messages
})

export default i18n